#include "pubsubobject.h"
#include "eventid.h"
#include <QDebug>
#include <QThread>

PubSubObject::PubSubObject(QObject *parent)
    : QObject(parent)
{

}

PubSubObject::~PubSubObject()
{

}

void PubSubObject::customEvent(QEvent *event)
{
    int type = event->type();
    switch (type)
    {
        case EV_TestThreadIsLocked:
            qDebug() << "Current thread is : " << thread()->objectName();
            break;
        default:
            break;
    }
}
